package nl.science.uva.pico;

/** 
 * Program counter keeps track of  the current stack program instruction
 * 
 * @author Ivo van Dongen, Karel Pieterson
 * @version 1.0
 */
public class ProgramCounter {
	private int currentLine = 0;

/**
 * get current program line number
 * 
 * @return integer
 */
	public int getCurrentLine() {
		return currentLine;
	}

/**
 * set current program line number
 * 
 * @param currentLine
 */	
	public void setCurrentLine(int currentLine) {
		this.currentLine = currentLine;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Current instruction number: " + getCurrentLine(); 
	}
	
}
